/*
磁卡注册

*/
import httpRequest from '@/utils/httpRequest'
// 获取磁卡注册列表
export function getList (data) {
  return httpRequest({
    url: '/truck/cardRegister/list',
    method: 'get',
    params: data
  })
}
// 获取ID获取卡片信息
export function queryById (data) {
  return httpRequest({
    url: '/truck/cardRegister/queryById',
    method: 'get',
    params: data
  })
}
// 新增磁卡注册信息或修改磁卡注册信息
export function edit (data) {
  return httpRequest({
    url: '/truck/cardRegister/save',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 更改磁卡状态
export function modifyState (data) {
  return httpRequest({
    url: '/truck/cardRegister/modifyState',
    method: 'post',
    data: data,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 发卡记录
export function send (data) {
  return httpRequest({
    url: '/truck/cardRegister/queryById',
    method: 'get',
    params: data
  })
}
// 删除磁卡注册信息
export function delRegiste (data) {
  return httpRequest({
    url: '/truck/cardRegister/delete',
    method: 'post',
    data: data
  })
}
// 发卡记录操作记录查询
export function hairCard (data) {
  return httpRequest({
    url: '/truck/cardOperate/list',
    method: 'get',
    data: data
  })
}
